package com.aaa.ms.service;

import com.aaa.common.entity.Order;
import com.aaa.ms.service.impl.OrderServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @fileName:Orderservice
 * @description:
 * @author:忆尘
 * @createTime:2020/11/5 16:11
 * @version:1.0.0
 */
@FeignClient(name = "orderService",fallback = OrderServiceFallBack.class)
@Service
public interface Orderservice {

    /**
     * 订单查询
     * @return
     */
    @RequestMapping("/order/selectAll")
    List<Order> listOrder();
}
